package com.tentact.controller;

import com.tentact.Service.DeleteService;
import com.tentact.Service.addEmpService;
import com.tentact.pojo.T_User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "/de")
public class deleteController {
   @Autowired
private DeleteService deleteService;
    @RequestMapping(value = "/lete", method = RequestMethod.GET)
    @ResponseBody
    public Integer addEmpController(Integer id){
        //对象接受

        Integer tuser=  deleteService.deleteemp(id);

        return tuser;

    }
}
